package org.bopis.action;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.bopis.form.BuscarForm;


public class MostrarBopiAction extends CustomBaseAction {
    public ActionForward execute(ActionMapping map, ActionForm form, HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {
	
    	   	
    	BuscarForm f = (BuscarForm) form;
    	System.out.println("Fecha del bopi seleccionado: " + f.getFecha());
    	//System.out.println("Nombre del bopi seleccionado: " + f.getFecha());
    	
    	
    	return map.findForward("buscar");
    }
}
